spb/datacenterindex
Public
HTML 53.9%
TypeScript 44.5%
JavaScript 0.6%
SQL 0.5%
1import type { MetroDetail } from "@dci/core";2import { cache } from "react";3import { api, type ApiResult } from "@/lib/api";45/** Per-request memoised metro loader shared by layout (existence gate), metadata, page and OG image. */6export const getMetro = cache(async (slug: string, fPage = 1): Promise<ApiResult<MetroDetail>> => api.metro(slug, fPage > 1 ? { fPage } : undefined));7